package com.fire.control.system.module.system.controller.app;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fire.control.system.module.system.service.InitSystemService;
import com.fire.control.system.standard.BusinessInterfaceStandard;
import com.fire.control.system.support.protocol.comman.ResponseProtocol;
import com.fire.control.system.support.protocol.comman.SimpleRequestProtocol;
/***
 * 
 * @ClassName:  InitSystemController   
 * @Description:初始化系统接口
 * @author:   chenchuang
 * @date:   2017年5月8日 下午4:52:52   
 *
 */

@RestController
@RequestMapping("/initSystem")
public class InitSystemController implements BusinessInterfaceStandard<SimpleRequestProtocol, ResponseProtocol>{
	
	@Autowired private InitSystemService initSystemService;
	
	@RequestMapping("/initResources")
	public ResponseProtocol initResources(SimpleRequestProtocol requestProtocol){
		return initSystemService.initResources(requestProtocol);
	}
	@RequestMapping("/initSuperCompany")
	public ResponseProtocol initSuperCompany(SimpleRequestProtocol requestProtocol){
		return initSystemService.initSuperCompany(requestProtocol);
	}
	@RequestMapping("/initRoles")
	public ResponseProtocol initRole(SimpleRequestProtocol requestProtocol){
		return initSystemService.initRoles(requestProtocol);
	}
}
